package com.wsx.rpc.zipkin.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author wangshuaixin
 * @Title: com.wsx.rpc.zipkin.service.FeignService
 * @Description: TODO
 * @date 2018/11/06
 */
@FeignClient(name = "zipkin-provider", serviceId = "zipkin-provider")
public interface FeignService {

    @RequestMapping(
            value = "/say/{name}",
            method = {RequestMethod.GET}
    )
    public String say(@PathVariable("name") String name);
}
